package org.eae.eldf.service.base;


import java.util.List;

import org.eae.eldf.dto.base.BaseCompanyInfoQueryDto;
import org.eae.eldf.entity.base.BaseCompanyInfo;
import org.eae.eldf.framework.pager.Pagination;
import org.eae.eldf.framework.service.BaseService;

public interface BaseCompanyInfoService extends BaseService<BaseCompanyInfo>{
	//查询所有baseCompanyInfo
	public Pagination<BaseCompanyInfo> queryListBaseCompanyInfo(Pagination<BaseCompanyInfo> pager,BaseCompanyInfoQueryDto baseCompanyInfoQueryDto);
	//通过id查询
	public BaseCompanyInfo findByBaseCompanyInfoId(Long id);
	//通过id删除
	public void deleteBaseCompanyInfo(Long id);
	//reids加载企业信息
	public void loadCompanyToRedis();
	/**
	 * 删除企业相关redis缓存
	 * @Date        :      2016-8-3
	 * @param companyCode
	 */
	public void clearRedis(String companyCode);
	
	public void createCompany(BaseCompanyInfo c);
	
	/**
	 * 修改companyinfo
	 * @Date        :      2017年1月6日
	 * @param c
	 */
	public void updateCompany(BaseCompanyInfo c);
	
	public List<BaseCompanyInfo> queryAll();
}
